﻿#pragma once


#include <mutex>
#include "Containers/Vector.h"
#include "Material/ShaderStage.h"

class CWriteInShader
{
public:

    bool IsDirty() const
    {
        return bDirty;
    }

    //保护所有数据的互斥锁,包括bDirty
    std::mutex Mutex;
    bool bDirty=false;
    TVector<uint8_t> Data;
    EShaderStage Stage;

};